package com.share.hope.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName(value = "poor_children", autoResultMap = true)
@Schema(description = "存储贫困儿童的信息")
public class PoorChildren extends BaseEntity{

    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "主键")
    private Long id;

    @TableField(value = "name")
    @Schema(description = "儿童姓名")
    private String name;

    @TableField(value = "age")
    @Schema(description = "儿童年龄")
    private Integer age;

    @TableField(value = "gender")
    @Schema(description = "儿童性别")
    private Integer gender;

    @TableField(value = "address")
    @Schema(description = "详细地址")
    private String address;

    @TableField(value = "family_income")
    @Schema(description = "家庭年收入")
    private Double familyIncome;

    @TableField(value = "is_enrolled")
    @Schema(description = "是否已经入学")
    private Integer isEnrolled;

    @TableField(value = "img_path")
    @Schema(description = "儿童图片路径")
    private String imgPath;

}
